Skip to content

Keep parsed segment names and lengths together - #759

Merged
tompollard merged 1 commit into
mainfrom
group-parsed-segment-lines
Nov 28, 2026
Merged

tompollard merged 1 commit into
mainfrom
group-parsed-segment-lines

Conversation

@tompollard

Copy link
Copy Markdown
Member

Summary

Parse each multi-segment header line into a private object that keeps the segment name and length together. Materialize the existing editable MultiRecord.seg_name and seg_len lists from those objects, so the public API and read behavior stay the same. This is a contained step toward #746 and #749.

The test covers a variable-layout header with a zero-length layout segment and an empty segment, and checks that editing a returned list does not change the cached parsed header.

Checks

  • Offline suite: 917 passed, 4 skipped, 21 deselected.
  • Sphinx HTML build with warnings as errors passed.
  • Ruff format and lint passed.
  • git diff --check passed.

@tompollard
tompollard merged commit 79af32d into main Nov 28, 2026
19 checks passed
@tompollard
tompollard deleted the group-parsed-segment-lines branch November 28, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant